//
//  JwCarouselController.m
//  JwPack
//
//  Created by 陈警卫 on 2024-08-28.
//

#import "JwCarouselController.h"
#import "JwCarouselView.h"

@interface JwCarouselController ()

@property (nonatomic, strong) JwCarouselView *carouselView1;
@property (nonatomic, strong) JwCarouselView *carouselView2;

@end

@implementation JwCarouselController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    [self setupView];
}

- (void)setupView {
    /**
     self.carouselView1 = [[JwCarouselView alloc] initWithFrame:(CGRectMake(20, kJwScrNavBatBarHeight, self.view.jw_width - 40, 200))];
     [self.view addSubview:self.carouselView1];
     
     NSArray *items1 = @[
     @"https://car3.autoimg.cn/cardfs/product/g24/M01/95/BC/1400x0_1_q95_autohomecar__Chtk3WUa3TKAKBcFAB22vxGVKy0330.jpg",
     @"https://car2.autoimg.cn/cardfs/product/g24/M00/95/BC/1400x0_1_q95_autohomecar__Chtk3WUa3TCAKnjCACyKZQ4v2PI990.jpg",
     //@"https://car2.autoimg.cn/cardfs/product/g24/M0A/95/BC/1400x0_1_q95_autohomecar__Chtk3WUa3S-AWAvnAB2u78s82wY733.jpg"
     ];
     self.carouselView1.items = items1;
     //self.carouselView1.timeInterval = 2;
     
     */

    self.carouselView2 = [[JwCarouselView alloc] initWithFrame:(CGRectMake(20, kJwScrNavBatBarHeight + 200 + 50, self.view.jw_width - 40, 200))];
    self.carouselView2.scrollDirection = UICollectionViewScrollDirectionVertical;
    [self.view addSubview:self.carouselView2];
    
    NSArray *items2 = @[
        @"https://car2.autoimg.cn/cardfs/product/g30/M0B/C9/44/1400x0_1_q95_autohomecar__ChxknGV9piqAOSnWABhvXKUDbsI211.jpg",
        @"https://car3.autoimg.cn/cardfs/product/g30/M01/09/71/1400x0_1_q95_autohomecar__CjIFU2V9piqAcjUSABiE1XlPNIQ659.jpg",
        @"https://car3.autoimg.cn/cardfs/product/g30/M00/C9/44/1400x0_1_q95_autohomecar__ChxknGV9piqAdUAwABm-p59oI54236.jpg"];
    self.carouselView2.items = items2;
    
    
}



@end
